package com.sg.dto.base.app.common;

import com.sg.common.dto.BaseDto;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Objects;


/**
 * @desc EverYoungDispatchSpaceLoopStartDto
 * @使用场景
 */
@Data
public class EverYoungDispatchSpaceLoopStartDto extends BaseDto implements Serializable {

    /**
     * 空间ID
     */
    @ApiModelProperty("空间ID")
    private String spaceId;

    /**
     * 空间简称
     */
    @ApiModelProperty("空间简称")
    private String abbreviation;

    /**
     * 隶属联盟应用ID
     */
    @ApiModelProperty("隶属联盟应用ID")
    private String subjectionAppId;

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        if (!super.equals(o)) return false;
        EverYoungDispatchSpaceLoopStartDto that = (EverYoungDispatchSpaceLoopStartDto) o;
        return spaceId == that.spaceId && abbreviation == that.abbreviation && subjectionAppId == that.subjectionAppId;
    }

    @Override
    public int hashCode() {
        return Objects.hash(super.hashCode(), spaceId, abbreviation, subjectionAppId);
    }


}
   